package com.ruoyi.common.oms.dao;

import com.ruoyi.common.oms.entity.YytOmsOrderItem;
import com.ruoyi.common.oms.entity.YytOmsOrderReturnApply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* <p>
    * 订单退货申请 Mapper 接口
    * </p>
*
* @author huangshun
* @since 2021-12-16
*/
@Repository
public interface YytOmsOrderReturnApplyMapper extends BaseMapper<YytOmsOrderReturnApply> {

    /**
     * 根据订单id获取订单项列表
     */
    @Select("select * from yyt_oms_order_return_apply where order_id = #{orderId}")
    List<YytOmsOrderReturnApply> listByOrderId(@Param("orderId") String orderId);

}
